$(function(){
    var _data = [];
    $('._mainJudge:eq(0) ._addJudge').each(function (i) {
        var dataobj = [];
        $(this).find('input').each(function () {
            dataobj.push(this.value);
        });
        if (i !== 0) {
            $(this).remove();
        }
        _data.push(dataobj);
    });
    for (var i = 1; i < _data.length ; i++) {
        $('._setMeal:eq(0)').trigger('click');
        var $_addJudge = $('._mainJudge:eq(0) ._addJudge');
        $($_addJudge[$_addJudge.length - 1]).find('input').each(function (index) {
                this.value = _data[i][index];
            }
        )
   }
    if($('._mainJudge:eq(0) ._addJudge')[1]){
    	$('._mainJudge:eq(0) ._addJudge:eq(0)').append('<div class="commentaryy "><a class="_delapps">删除</a></div>')
    }
})

